package com.quanyan.user.mapper;

import com.quanyan.user.model.db.TbCity;
import com.quanyan.user.model.vo.request.admin.ReqUserAccountBindQuery;
import com.quanyan.user.model.vo.request.admin.ReqUserQuery;
import com.quanyan.user.model.vo.response.admin.RespUser;
import com.quanyan.user.model.vo.response.admin.RespUserAccountBindInfo;
import com.quanyan.user.model.vo.response.admin.RespUserGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by hua on 2016/8/13.
 */
public interface UserAdminMapper {
    List<RespUser> getUserList(ReqUserQuery userQuery);

    List<RespUserGroup> getUserGroup(List<Integer> uids);

    Integer countByQuery(ReqUserQuery userQuery);

    List<TbCity>  queryTbCityList(Integer provinceId);

    void updateUserGroup(@Param("uid") Integer uid, @Param("groupId") Integer groupId );

    RespUser queryUserDetail(Integer uid);

    String queryUserInterests(Integer uid);

    List<RespUser> getNickNameIsNullList();

    int updateNullNickName(Map map);

    List<RespUserAccountBindInfo> queryUserAccountBindList(ReqUserAccountBindQuery userAccountBindQuery);

    Integer selectAccountBindCountByQuery(ReqUserAccountBindQuery userAccountBindQuery);

    List<RespUser> getUserYearIsZero();

    List<RespUser> getUserRegTimeIsNull();

    List<RespUser> getUserWechatBindingList();
}
